derivative first principles